import service from '@/utils/request'
// @Tags BwAssessmentTasks
// @Summary 创建考核任务
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BwAssessmentTasks true "创建考核任务"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bwAssessmentTasks/createBwAssessmentTasks [post]
export const createBwAssessmentTasks = (data) => {
  return service({
    url: '/bwAssessmentTasks/createBwAssessmentTasks',
    method: 'post',
    data
  })
}

// @Tags BwAssessmentTasks
// @Summary 删除考核任务
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BwAssessmentTasks true "删除考核任务"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bwAssessmentTasks/deleteBwAssessmentTasks [delete]
export const deleteBwAssessmentTasks = (params) => {
  return service({
    url: '/bwAssessmentTasks/deleteBwAssessmentTasks',
    method: 'delete',
    params
  })
}

// @Tags BwAssessmentTasks
// @Summary 批量删除考核任务
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除考核任务"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bwAssessmentTasks/deleteBwAssessmentTasks [delete]
export const deleteBwAssessmentTasksByIds = (params) => {
  return service({
    url: '/bwAssessmentTasks/deleteBwAssessmentTasksByIds',
    method: 'delete',
    params
  })
}

// @Tags BwAssessmentTasks
// @Summary 更新考核任务
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.BwAssessmentTasks true "更新考核任务"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bwAssessmentTasks/updateBwAssessmentTasks [put]
export const updateBwAssessmentTasks = (data) => {
  return service({
    url: '/bwAssessmentTasks/updateBwAssessmentTasks',
    method: 'put',
    data
  })
}

// @Tags BwAssessmentTasks
// @Summary 用id查询考核任务
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.BwAssessmentTasks true "用id查询考核任务"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bwAssessmentTasks/findBwAssessmentTasks [get]
export const findBwAssessmentTasks = (params) => {
  return service({
    url: '/bwAssessmentTasks/findBwAssessmentTasks',
    method: 'get',
    params
  })
}

// @Tags BwAssessmentTasks
// @Summary 分页获取考核任务列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取考核任务列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bwAssessmentTasks/getBwAssessmentTasksList [get]
export const getBwAssessmentTasksList = (params) => {
  return service({
    url: '/bwAssessmentTasks/getBwAssessmentTasksList',
    method: 'get',
    params
  })
}

// @Tags BwAssessmentTasks
// @Summary 不需要鉴权的考核任务接口
// @Accept application/json
// @Produce application/json
// @Param data query exampleReq.BwAssessmentTasksSearch true "分页获取考核任务列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /bwAssessmentTasks/getBwAssessmentTasksPublic [get]
export const getBwAssessmentTasksPublic = () => {
  return service({
    url: '/bwAssessmentTasks/getBwAssessmentTasksPublic',
    method: 'get',
  })
}
